﻿// =================================================================
//  Copyright (c) "David R. Guindo", Software architect
//  
//  This code is released under the terms of the Apache License, Version 2.0,
//  http://www.apache.org/licenses/LICENSE-2.0
//  
//  THIS CODE AND INFORMATION ARE PROVIDED WITHOUT WARRANTIES,
//  WITHOUT LIMITING COMMERCIAL OR PARTICULAR USE.
// =================================================================

namespace ScreenManagerDemo
{
   using System.Windows;
   using System.Windows.Controls;

   using ScreenManager;

   internal static class ScreenView
   {
      internal static void CloseView(UserControl container)
      {
         NavigationView.CloseView(container);
      }

      internal static void ShowView(UserControl view, string channel)
      {
         FrameworkElement fe = ScreenManager.GetChannelContainer(channel);
         NavigationView.ShowView(view, fe);
      }
   }
}